package com.creative.user.domain.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class LoginDto {
    @NotEmpty(message = "用户名不能为空")
    private String name;
    @NotEmpty
//    @Pattern(regexp = PASSWORD, message = "密码格式不正确")
    private String password;
    @NotEmpty(message = "验证码不能为空")
    private String code;
    //    用户验证码的uuid
    @NotEmpty
    private String uuid;

}
